﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<#assign active='siteAdd'/>
<body>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="col-xs-12">
                    <div class="row-fluid">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="lighter">
                                    <i class="icon-plus"></i>产品录入
                                </h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content row-fluid position-relative">
                                        <form class="form-horizontal" action="/admin/doc/add" method="post"  enctype="multipart/form-data">

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">产品名</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100" name="name" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">价格（元）</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="number" class="width-100" name="price" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">评估价（元）</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="number" class="width-100" name="accessprice" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">涨幅（元）</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="number" class="width-100" name="range" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">开始时间</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100 date-picker" name="starttime" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">结束时间</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="text" class="width-100 date-picker" name="endtime" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-5 control-label no-padding-right">展示图</label>
                                                <div class="col-xs-12 col-sm-5">
                                                    <input type="file" class="width-100" name="icon" required/>
                                                </div>
                                            </div>

                                            <div class="form-group has-info">
                                                <label class="col-xs-12 col-sm-2 control-label no-padding-right">具体内容</label>
                                                <div class="col-xs-12 col-sm-9">
                                                    <textarea name="content" id="content" style="width: 100%"></textarea>
                                                </div>
                                            </div>


                                            <hr/>
                                            <div class="row-fluid wizard-actions">
                                                <button class="btn" type="reset">重置</button>
                                                <button class="btn btn-success" type="submit">提交</button>
                                            </div>

                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- /.page-content -->
    </div><!-- /.main-content -->
</div><!-- /.main-container -->
</body>
<#include "../include/resource-script.ftl"/>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create("#content", {
            uploadJson: '/file/uploadFile',
            fileManagerJson: '',
            allowFileManager: false
        });
    });

    $('.date-picker').datetimepicker({autoclose: true, language: 'zh-CN',format: 'yyyy-mm-dd hh:ii'});
</script>
</html>

